<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

	<composite:interface>
	</composite:interface>
	
	<composite:implementation>
		<h3>News Feed</h3>
		<p:dataList value="#{newsBean.newsList}" var="n" itemType="circle" type="none" rendered="#{not empty newsBean.newsList}">
			<p:panel header="#{n.title}">
				<f:facet name="footer">
					<h:outputText value="#{n.timestamp}">
						<f:convertDateTime pattern="yyyy-MM-dd HH:mm" />
					</h:outputText> von <h:outputText value="#{n.creator.username}" />
				</f:facet>
				<h:outputText value="#{n.content}" />
			</p:panel>
		</p:dataList>
		
	</composite:implementation>
</html>